﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TravelLink.DAL {
    //状态： 0 - 发布 ，-1停止，1推荐职位
    public class Enum_PositionStatus {
        //发布
        public const int Release = 0;
        //停止
        public const int Stop = -1;
        //推荐职位
        public const int Recommend = 1;


        public static string Resolve(int? val) {
            if (val.HasValue) {
                switch (val.Value) {
                    case Release: return "发布";
                    case Stop: return "停止";
                    case Recommend: return "推荐";
                    default:
                        return "发布";
                }
            }
            return "发布";
        }
    }
}
